package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    private Long deptId;
    // 关联属性, 不仅可以封装部门 id 可以封装部门名称
     private Department dept;
     //关联属性
    private List<Role> roles=new ArrayList<>();
}